<?php /*a:1:{s:63:"/www/Data/Cloud/application/index/view/Auth/updateCommpany.html";i:1638155059;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>基础表单</title>
    <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        #formBasForm {
            margin: 30px auto;
        }
        #formBasForm .layui-form-item {
            margin-bottom: 25px;
        }
    </style>
</head>
<body>
<!-- 正文开始 -->
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 表单开始 -->
           
            <div class="layui-form-item">
                <label class="layui-form-label ">手机号码:</label>
                <div class="layui-input-block">
                    <input  id="phone" placeholder="" class="layui-input"
                           lay-verType="tips"  />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">企业名称:</label>
                <div class="layui-input-block">
                    <input placeholder=""  id="company_name" class="layui-input"
                           lay-verType="tips"   />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">法人:</label>
                <div class="layui-input-block">
                    <input placeholder=""  id="legal_person" class="layui-input"
                           lay-verType="tips"   />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">企业编码:</label>
                <div class="layui-input-block">
                    <input placeholder=""  id="unify_social_code" class="layui-input"
                           lay-verType="tips"   />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">经营范围:</label>
                <div class="layui-input-block">
                    <input placeholder=""  id="business_scope" class="layui-input"
                           lay-verType="tips"   />
                </div>
            </div>
            <!--<div class="layui-form-item">-->
            <!--    <label class="layui-form-label">成立日期:</label>-->
            <!--    <div class="layui-input-block">-->
            <!--        <input placeholder=""  id="establish_date" class="layui-input"-->
            <!--               lay-verType="tips"   />-->
            <!--    </div>-->
            <!--</div>-->
            
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" id="formStepSubmit2">&emsp;保存&emsp;
                    </button>
                </div>
            </div>
           
            <div class="layui-form-item">
                <label class="layui-form-label ">人脸结果:</label>
                <div class="layui-input-block">
                    <input  id="is_face" placeholder="" class="layui-input"
                           lay-verType="tips"  />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">营业执照地址:</label>
                <div class="layui-input-block">
                    <input  id="url" placeholder="" class="layui-input"
                           lay-verType="tips"  />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" id="formStepSubmit3">&emsp;保存&emsp;
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="/static/assets/js/common.js?v=318"></script>
<script type="text/javascript" src="/static/clipboard.min.js"></script>
<script>
    layui.use(['layer', 'form', 'laydate','jquery','flow'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var laydate = layui.laydate;

        var apikey;
        /* 渲染laydate */
        laydate.render({
            elem: '#formBasDateSel',
            trigger: 'click',
            range: true
        });

        /* 监听表单提交 */
        form.on('submit(formBasSubmit)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
        $("#copy").click(function(){
            
            var clipboard = new ClipboardJS('res');
                  clipboard.on('success', function(e) {
                      alert('复制成功');
                      clipboard.destroy();  //解决多次弹窗
                      e.clearSelection();
                  });
        })
        $("#formStepSubmit3").click(function(){
            var is_face = $("#is_face").val();
            var url = $("#url").val();
            var phone = $('#phone').val();
            var loadIndex = layer.load(2);
             $.post('/index/Auth/saveBaseinfo', {
                is_face: is_face,
                url:url,
                phone:phone
            }, function (res) {
                layer.close(loadIndex);
                layer.msg(res.msg, {icon: 1, anim: 6});
            }, 'json');
        })
        $("#formStepSubmit2").click(function(){
            
            var phone = $("#phone").val();
            var company_name = $("#company_name").val();
            var legal_person = $("#legal_person").val();
            var unify_social_code = $("#unify_social_code").val();
            var business_scope =  $("#business_scope").val();
           
            var loadIndex = layer.load(2);
            $.post('/index/Auth/saveZhizhao', {
                phone: phone,
                company_name:company_name,
                legal_person:legal_person,
                unify_social_code:unify_social_code,
                business_scope:business_scope,
            }, function (res) {
                layer.close(loadIndex);
                layer.msg(res.msg, {icon: 1, anim: 6});
            }, 'json');

        })

    });
</script>
</body>
</html>